/** 
 * @file	os.h
 * @brief	
 * 
 *  This file include all standard IO operation.
 * 
 * @author	hlli
 * @version	1.0
 * @date	2010-05-17
 * 
 * @see		
 * 
 * <b>History:</b><br>
 * <table>
 *  <tr> <th>Version	<th>Date		<th>Author	<th>Notes</tr>
 *  <tr> <td>1.0		<td>2010-05-17	<td>hlli	<td>Create this file</tr>
 * </table>
 * 
 */
#ifndef __MSP_STDIO_H__
#define __MSP_STDIO_H__

#ifdef __cplusplus
extern "C"
{
#endif

#define msp_fopen	fopen
#define msp_fclose	fclose
#define msp_fgets	fgets
#define msp_fputs	fputs
#define msp_fgetc	fgetc
#define msp_fputc	fputc
#define msp_fprintf	fprintf
#define msp_fseek	fseek
#define msp_ftell	ftell
#define msp_fread	fread
#define msp_fwrite	fwrite
#define msp_fflush	fflush
#define msp_feof	feof

#define msp_va_start	va_start
#ifdef WIN32
#define msp_vsnprintf  _vsnprintf
#else
#define msp_vsnprintf   vsnprintf
#endif
#define msp_va_end		va_end

#define msp_printf		printf
#define msp_sprintf		sprintf
#define msp_sscanf		sscanf

int msp_mkdir(const char* pathname, int mode);
int msp_access(const char* pathname, int mode);
int msp_rename(const char* from_file, const char* to_file);
int msp_unlink(const char* file);
unsigned int msp_absseccount(void);
unsigned int msp_tickcount(void);
const char* msp_strerror(int err);
void msp_sleep(int time_ms);
int msp_snprintf(char *buffer, int bufsize, const char *fmt, ...);
#ifdef  __cplusplus
}   /* extern "C" */
#endif

#endif /* __MSP_STDIO_H__ */
